/**
 * avRecThrd.h
 */

#ifndef __RECORD_H__
#define __RECORD_H__

#ifdef __cplusplus
extern "C" {
#endif

#include <pthread.h>
#include <stdbool.h>

#include <capturer.h>

#define ALARM_REC_SECOND (60 * 2)
#define ALARM_REC_SECOND_MAX    (60 * 5)

typedef struct {
	bool alarming;		// for alarm record only
	char id;
	int seconds;
} RecParam;

/**
 * record thread
 * @param
 *		arg	input	chnvid pointer
 */
void *recThrd(void *arg);

#ifdef __cplusplus
}
#endif

#endif	// __RECORD_H__

